Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed a problem with running IE on a retina screen #194

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

robdmoore
Copy link
Member

http://stackoverflowcom/questions/12034969/internetexplorerdriver-zoom-level-error

Also fixed a problem where an error after resolving a driver means the driver and browser didn't get tied to the parent process.

cc @mwhelan

…low.com/questions/12034969/internetexplorerdriver-zoom-level-error)

Also fixed a problem where an error after resolving a driver means the driver and browser didn't get tied to the parent process
@@ -142,7 +143,8 @@ public static InternetExplorerDriver InternetExplorer()
public static InternetExplorerDriver InternetExplorer(InternetExplorerOptions options)
{
return new WebDriverBuilder<InternetExplorerDriver>(() => new InternetExplorerDriver(options))
.WithFileName("IEDriverServer.exe");
.WithFileName("IEDriverServer.exe")
.WithProcessNames("IEDriverServer", "iexplore");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably also need to do this for chrome, but for now just adding for IE since it was easy for me to test at the time

@dennisroche
Copy link
Contributor

This would be great to get merged. I'm having the acceptance tests fail on my Surface Pro 3 as Windows 8 defaults the zoom to 150%.

@robdmoore
Copy link
Member Author

Hmm. I wonder if we can set the zoom level with selenium

On 23 Feb 2015, at 9:31 am, Dennis Roche [email protected] wrote:

This would be great to get merged. I'm having the acceptance tests fail on my Surface Pro 3 as Windows 8 defaults the zoom to 150%.


Reply to this email directly or view it on GitHub.

@mwhelan
Copy link
Member

mwhelan commented Feb 23, 2015

You can use the Action class to zoom in/out with CTRL + and CTRL – . Maybe try CTRL 0 for 100%?

Sent from my iPad

On 23 Feb 2015, at 01:32, Rob Moore [email protected] wrote:

Hmm. I wonder if we can set the zoom level with selenium

On 23 Feb 2015, at 9:31 am, Dennis Roche [email protected] wrote:

This would be great to get merged. I'm having the acceptance tests fail on my Surface Pro 3 as Windows 8 defaults the zoom to 150%.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub.

@dennisroche
Copy link
Contributor

Unfortunately cannot use Ctrl + 0 as that defaults to 150%.

ie-no-ctrl

@mwhelan
Copy link
Member

mwhelan commented Feb 23, 2015

From that screenshot it looks like zooming out (Ctrl -) twice will get you to 100%

@robdmoore
Copy link
Member Author

Is there a way to inspect the current zoom level?

On 23 Feb 2015, at 3:43 pm, Michael Whelan [email protected] wrote:

From that screenshot it looks like zooming out (Ctrl -) twice will get you to 100%


Reply to this email directly or view it on GitHub.

@mwhelan
Copy link
Member

mwhelan commented Feb 23, 2015

Sorry, I was on the train and hadn't read the whole thread. If it's just IE then it's a known problem and I think you just have to set IgnoreZoomLevel = true.

    var options = new InternetExplorerOptions
    {
        IntroduceInstabilityByIgnoringProtectedModeSettings = true ,
        IgnoreZoomLevel = true
    };
    return new WebDriverBuilder<InternetExplorerDriver>(() => new InternetExplorerDriver(options))
        .WithFileName("IEDriverServer.exe");       

@robdmoore
Copy link
Member Author

That doesn't fix the problem.

The zoom level would still be wrong and the screenshot will be different.
Also, the screenshots are being taken in Firefox I think.

On Mon, Feb 23, 2015 at 4:02 PM, Michael Whelan [email protected]
wrote:

Sorry, I was on the train and hadn't read the whole thread. If it's just
IE then it's a known problem and I think you just have to set
IgnoreZoomLevel = true.

var options = new InternetExplorerOptions
{
    IntroduceInstabilityByIgnoringProtectedModeSettings = true ,
    IgnoreZoomLevel = true
};
return new WebDriverBuilder<InternetExplorerDriver>(() => new InternetExplorerDriver(options))
    .WithFileName("IEDriverServer.exe");


Reply to this email directly or view it on GitHub
#194 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants